import server from '@/utils/server'
// 请求首页轮播图片的接口
const getBanners = async () => {
    let data = await server.get('/small4/banner/list')
    return data
}

// 请求砍价列表数据的接口
const getKjList = async () => {
    let data = await server.get('/small4/shop/goods/kanjia/list')
    return data
}
// 'url?id=' + id

// 登录接口 key=value&key=value的形式 query参数 本质上应该是params参数
const login = async (user) => {
    let data = await server({
        url: '/small4/user/m/login?deviceId=007&deviceName=monkey',
        method:'post',
        params: user
    })
    return data
}
export {
    getBanners,
    getKjList,
    login
}